-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support all options to create orchestration stacks #88
Conversation
2a4ae0f
to
50a2938
Compare
@durandom @gmcculloug please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM
timeout = @dialog_options['dialog_stack_timeout'] | ||
stack_options = {:parameters => stack_parameters, :disable_rollback => on_failure != 'ROLLBACK'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about :disable_rollback
is that superseded by another key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We now use :on_failure
so :disable_rollback
should not be used.
@gmcculloug can you have a second look too? |
Because of our service dialog TextBox's length constraint, we cannot use comma separated string to receive an array. I will change them to TextAreaBox. Will update this PR. |
50a2938
to
b8fdf05
Compare
Now accept all options that Cloudformation recognizes while creating a stack https://bugzilla.redhat.com/show_bug.cgi?id=1385712
b8fdf05
to
421d170
Compare
@gmcculloug @durandom Updated the PR. We expect to take array inputs from text area, one entry per line. |
@gmcculloug can you have a look, I'll merge upon your 👍 |
@bzwei Can you add a screenshot of a service dialog showing examples for the new options? |
I was hoping for some text in the dialog fields to show
|
Much better, thanks! @durandom 👍 |
cool, thanks for the screenshots @bzwei |
Darga backport (to manageiq repo) details:
|
Support all options to create orchestration stacks (cherry picked from commit 07feb3e) https://bugzilla.redhat.com/show_bug.cgi?id=1411369
Euwe backport details:
|
Before when creating a Cloudformation stack we only accept two optional options, timeout and on_failure. Feature request https://bugzilla.redhat.com/show_bug.cgi?id=1385712 wants to set the capacities option.
This work now enables manageiq users to supply any option that Cloudformation supports. The conversion is based on the assumption that the options are input through manageiq service dialog. Most of the inputs are through textfields:
tagKey1 => tagVal1, tagKey2 => tagVal2
; converted to an array of hashesOthers are from dropdown lists:
A follow-up PR will enhance out service dialog creation tool to use textfields and drop downs to receive above user options, while this change is backward compatible with the existing service dialog that takes only timeout and on_failure options.
https://bugzilla.redhat.com/show_bug.cgi?id=1385712
https://www.pivotaltracker.com/story/show/133693457
http://docs.aws.amazon.com/sdkforruby/api/Aws/CloudFormation/Client.html#create_stack-instance_method